<?php
    require('./base.php');

	$arr = array (
		"app_id" => GF_APPID,
		"timestamp" => date("Y-m-d H:i:s"),
		"version" => API_VERSION,
		"store_code" => BUSI_CODE,
		"dev_id" => get_local_ip(),
		"oper_id" => "",
		"amount" => 1,
		"undiscountable_amount" => 0,
		"raw_data" => "",
		"auth_code" => "289834978460877917",
		"down_trade_no" => date("YmdHis"),
		"subject" => "广分测试门店",
		"sign" => ""
	);

    $sign = getSign($arr);
    $arr["sign"] = $sign;

    $post_url = GF_API_URL_PREFIX.API_VERSION."/pay/micropay";
    echo "接口地址:".$post_url."<br>";

    $result_arr = exec_curl($arr, $post_url);
    print_r("返回数据:".$result_arr);
?>